<template>
    <div>
        登陆页面
        <p>
            <button @click="axiosEvt">Axios</button>
        </p>
        <p>
            <button @click="loginEvt">登陆</button>
        </p>
    </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'
import axios,{ AxiosResponse} from 'axios';
import func from '../../../vue-temp/vue-editor-bridge';

function axiosEvt() {
    axios.get(
        '/apis/show/list',
        {
            method: 'GET',
            params: {
                page: 1,
                size: 20
            }
        }
    ).then(function(d:AxiosResponse) {
        console.log(d)
    })
}

const router = useRouter()

function loginEvt(): void {
    router.push('/home')
}
</script>